package com.sgolub.commanndsonline.service.ref.distinct;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sgolub.commanndsonline.dao.ref.distinct.RefDistinctLocalityDAO;
import com.sgolub.commanndsonline.domain.ref.distinct.RefDistinctLocality;

@Service
public class RefDistinctRegionServiceImpl implements RefDistinctLocalityService {

	@Autowired
	private RefDistinctLocalityDAO refDistinctLocalityDAO;
	

	@Transactional
	public List<RefDistinctLocality> list() {
		return refDistinctLocalityDAO.list();
	}

	@Transactional
	public List<RefDistinctLocality> match(String matchString){
		return refDistinctLocalityDAO.match(matchString);
	}
	
}
